<?php /* Smarty version 2.6.13, created on 2013-10-06 14:18:40
         compiled from Public/hotsort.html */ ?>
	<div id="detailleft">
		<div id="foodhot">
			<h2>热门排行</h2>
			<div id="foodhotlist">
				<ul>
					<?php $_from = $this->_tpl_vars['hotSortRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['hot'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['hot']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['v']):
        $this->_foreach['hot']['iteration']++;
?>
					<li>
					<img src='Public/Images/listnum/<?php echo ($this->_foreach['hot']['iteration']-1)+1; ?>
.gif'/>
					&nbsp;&nbsp;	<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['v']['food_id']; ?>
'><?php echo $this->_tpl_vars['v']['food_name']; ?>
</a><span></span></li>
					<?php endforeach; else: ?>
						<li>没有数据</li>
					<?php endif; unset($_from); ?>
				
				</ul>
			</div>
			
		</div>
		<div id="foodscanf">
			<h2>最近浏览</h2>
			<div id="lastscanf">
				<ul >
					<?php $_from = $this->_tpl_vars['latestRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['latest'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['latest']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['lv']):
        $this->_foreach['latest']['iteration']++;
?>
					<li style='border-bottom:1px dashed #ccc;line-height:29px;height:29px;'>
						<img src='Public/Images/listnum/<?php echo ($this->_foreach['latest']['iteration']-1)+1; ?>
.gif' style="position:relative;left:5px;"/>
						&nbsp;&nbsp;<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['lv']['food_id']; ?>
'><?php echo $this->_tpl_vars['lv']['food_name']; ?>
</a><span></span></li>
					<?php endforeach; else: ?>
						<li>您还没有浏览商品！</li>
					<?php endif; unset($_from); ?>
				
				</ul>				
			</div>
		</div>
	</div>